package com.example.springbean;


import com.google.common.base.Preconditions;

import java.util.Objects;

public class LamdaTest {


    public static void main(String[] args) {



        Integer a = 10;
        String sb = Objects.toString(a);
        System.out.println(sb);
        doSomething("Jim", 19, "hello world, hello java");
    }


    public static void doSomething(String name, int age, String desc) {
        Preconditions.checkNotNull(name, "name may not be null");
        Preconditions.checkArgument(age >= 18 && age < 99, "age must in range (18,99)");
        Preconditions.checkArgument(desc != null && desc.length() < 10, "desc too long, max length is ", 10);

        System.out.println(11111111);
        //do things
    }
}
